package org.lucava.boatskeeper.client.event.category;

import com.google.gwt.event.shared.GwtEvent;
import org.lucava.boatskeeper.shared.dto.CategoryDto;

public class SaveCategoryEvent extends GwtEvent<CategoryHandler> {

    public static GwtEvent.Type<CategoryHandler> TYPE = new GwtEvent.Type<CategoryHandler>();

    public SaveCategoryEvent() {
    }

    @Override
    public GwtEvent.Type<CategoryHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(CategoryHandler handler) {
        handler.onSaveCategory(this);
    }
}